package org.s3.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.s3.project.entity.AddressBook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cfx
 * @version 1.0
 * @Description
 * @date 2025/2/9 9:50
 */
@Service
public interface AddressBookService extends IService<AddressBook> {
    List <AddressBook> getDefaultAddressBook(int userId);
    int addAddressBook(AddressBook addressBook);
    int deleteAddressBook(int id);
    int updateAddressBook(AddressBook addressBook);

    Boolean UpdateIsDefault(long userId, long id);
}
